<?php

class Ads_Model_Searchsettings {

    private $_dbtable;

    public function __construct() {
        $this->_dbtable = new Ads_Model_DbTable_Searchsettings();
    }

    public function save($data) {
        $this->_dbtable->insert($data);
    }

    public function update($data, $id) {
        $this->_dbtable->update($data, "sr = $id");
    }

    public function getByUserId($id) {
        $select = $this->_dbtable->select();
        $select->where("sr = ?", $id);
        return $this->_dbtable->fetchAll($select);
    }

}

